package service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ServiceTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("SpringConfig.xml");
        OrderService oService = (OrderService) context.getBean("orderService");
        GameService gService = (GameService) context.getBean("gameService");
        gService.add();
        gService.find();
        oService.add();
    }
}
